-- GENERATED SPELL FOR [Firemane Scalebane] --


function spell0_4328(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(18968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4328', 0, 1)
end

function spell1_4328(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4328', 8277, 1)
end

function spell2_4328(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4328', 30309, 1)
end

function Sorts_4328(pUnit, Event)
local choix_sorts_4328 = math.random(0, 2)
if choix_sorts_4328 == 0 then
pUnit:RegisterEvent('spell0_4328', 1, 1)
end
if choix_sorts_4328 == 1 then
pUnit:RegisterEvent('spell1_4328', 1, 1)
end
if choix_sorts_4328 == 2 then
pUnit:RegisterEvent('spell2_4328', 1, 1)
end
end

function mob4328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4328', math.random(1500, 3000), 1)
end

function mob4328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4328, 1, 'mob4328_Action')
RegisterUnitEvent(4328, 2, 'mob4328_Leave')
RegisterUnitEvent(4328, 3, 'mob4328_Kill')
RegisterUnitEvent(4328, 4, 'mob4328_Die')
